package chapter11;

/**
 * 电脑
 */
public class RobotBrain {
    /*** 处理器*/
    private String cpu;
    /*** 内存*/
    private int memory;

    /*** 构造器*/
    public RobotBrain(){}
    public RobotBrain(String cpu,int memory){
        this.cpu = cpu;
        this.memory = memory;
    }

    /*** 方法*/
    public void show(){
        System.out.println("这是一台搭载了"+ cpu +"的电脑 "+"   有" + memory+"G  内存");
    }
    public void feature(){
        System.out.println("互联网的平台");
    }

    public String getCpu() {
        return cpu;
    }
    public void setCpu(String cpu) {
        this.cpu = cpu;
    }
    public int getMemory() {
        return memory;
    }
    public void setMemory(int memory) {
        this.memory = memory;
    }
}
